<template>
    父组件 ---- {{ message }}
    <hr>
    <SlotSubComponent/>
    <P>{{ message }}</P>
</template>

<script setup>
import SlotSubComponent from './SlotSubComponent.vue';
const message= "这是组件的自定义内容" 

</script>

<style scoped>

</style>